using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Jst.Domain
{
    [SugarTable("TasksLog", TableDescription = "任务日志表")]
    public partial class TasksLog
    {
        /// <summary>
        /// Id
        /// </summary>
        [Display(Name = "Id")]
        [SugarColumn(ColumnDescription = "Id", IsNullable = false, IsPrimaryKey = true, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        /// <summary>
        /// 任务ID
        /// </summary>
        [Display(Name = "任务ID")]
        [SugarColumn(ColumnDescription = "任务ID", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long JobId { get; set; }

        /// <summary>
        /// 任务耗时
        /// </summary>
        [Display(Name = "任务耗时")]
        [SugarColumn(ColumnDescription = "任务耗时", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        public object TotalTime { get; set; }

        /// <summary>
        /// 执行结果(0-失败 1-成功)
        /// </summary>
        [Display(Name = "执行结果(0-失败 1-成功)")]
        [SugarColumn(ColumnDescription = "执行结果(0-失败 1-成功)", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public bool RunResult { get; set; }

        /// <summary>
        /// 运行时间
        /// </summary>
        [Display(Name = "运行时间")]
        [SugarColumn(ColumnDescription = "运行时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime RunTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        [Display(Name = "结束时间")]
        [SugarColumn(ColumnDescription = "结束时间", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 执行参数
        /// </summary>
        [Display(Name = "执行参数")]
        [SugarColumn(ColumnDescription = "执行参数", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(500, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string RunPars { get; set; }

        /// <summary>
        /// 异常信息
        /// </summary>
        [Display(Name = "异常信息")]
        [SugarColumn(ColumnDescription = "异常信息", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(500, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string ErrMessage { get; set; }

        /// <summary>
        /// 异常堆栈
        /// </summary>
        [Display(Name = "异常堆栈")]
        [SugarColumn(ColumnDescription = "异常堆栈", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(2000, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string ErrStackTrace { get; set; }

        /// <summary>
        /// 创建ID
        /// </summary>
        [Display(Name = "创建ID")]
        [SugarColumn(ColumnDescription = "创建ID", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int CreateId { get; set; }

        /// <summary>
        /// 创建者
        /// </summary>
        [Display(Name = "创建者")]
        [SugarColumn(ColumnDescription = "创建者", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(50, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [SugarColumn(ColumnDescription = "创建时间", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 修改ID
        /// </summary>
        [Display(Name = "修改ID")]
        [SugarColumn(ColumnDescription = "修改ID", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int ModifyId { get; set; }

        /// <summary>
        /// 修改者
        /// </summary>
        [Display(Name = "修改者")]
        [SugarColumn(ColumnDescription = "修改者", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(100, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string ModifyBy { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [SugarColumn(ColumnDescription = "修改时间", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime ModifyTime { get; set; }

    }
}
